package com.wlhse.util;

import org.springframework.stereotype.Component;
import org.springframework.util.DigestUtils;


@Component
public class MD5Util {
    private static  final String salt = "+-*/109951450571690524388396421648648222496407230094142695576998187151600040182958909334289745865589225383743797664756610524791059131420381456472639224008998817834081027971018112828332889994074702458503350584424320976428090619607140783288894397264326557268559765494107440126015871832745743041024198094964670312065";

    public static String getMD5(String origin) {
        String base = origin + salt;
        return DigestUtils.md5DigestAsHex(base.getBytes());
    }
}
